﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.Caching;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using SalePartial.BLL;

public partial class controls_front_Exhb : System.Web.UI.UserControl
{
    //private SalePartial.BLL.Exhibition exhbBll = new SalePartial.BLL.Exhibition();
    private DateTime expireTime = DateTime.Now.AddMinutes(60);

    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            bind() ;
        }
    }

    private void bind()
    {
        //string cacheKey = "limitExhb";
        //if (Cache[cacheKey] != null)
        //{
        //    this.exhbList.DataSource = (IEnumerable)Cache[cacheKey];
        //}
        //else
        //{
        //    IList exhbs = exhbBll.GetExhbByLimit(8);
        //    Cache.Add(cacheKey, exhbs, null, expireTime, TimeSpan.Zero, CacheItemPriority.High, null);
        //    this.exhbList.DataSource = exhbs;
        //}

        //this.exhbList.DataBind();
    } 
}
